<template>
	<div>
		<el-card class="mb-4" shadow="never">
			<div class="text-xl font-medium mb-[20px]">默认</div>
			<amap :mapData="state.value" @confirm="mapConfirm"></amap>
		</el-card>
	</div>
</template>

<script setup lang="ts" name="compAMap">
import { reactive } from 'vue';

const state = reactive({
	value: {
		lat: 22.554732,
		lng: 113.887902,
	}
});

const mapConfirm = (res) => {
	console.log(res)
};

</script>

<style scoped lang="scss"></style>
